<template>
	<view style="min-height: 100vh;"
		:style="{background:'url('+Imgbase+'/new1_infinite_bgc.png)','background-size':'100% 100%',}">
		<view class="cu-dialogupdate padding-top-100">
			<image :src="Imgbase + '/1app_login_logo.png'" mode="widthFix" style="width: 100%">
			</image>

			<view class="update_item  w-600" @click="downloadan" style="border-color: #4BC561;margin: 50rpx auto;">
				<view class="">
					<image :src="Imgbase + '/1app_update_anz.png'" mode="widthFix" style="width: 80rpx">
					</image>
				</view>
				<view class="">
					安卓APK下载
				</view>
			</view>

			<view class="update_item w-600" style="margin: 0rpx auto;">
				<view class="">
					<image :src="Imgbase + '/1app_update_apple.png'" mode="widthFix" style="width: 80rpx">
					</image>
				</view>
				<view class="">
					IOS下载
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				Imgbase: getApp().globalData.Imgbase,
				mobile: '',
				password: '',
				repeatpassword: '',
				code: '',
				btmes: '发送验证码',
				locktime: 0,
				lockstate: 0,
				timer: null,
			}
		},
		methods: {
			downloadan() {
				let _this = this;
				uni.setClipboardData({
					data: 'https://apiv2.oqzhs.cn/oqyf.apk',
					success: function(res) {
						wx.showToast({
							title: "下载链接已复制，请打开浏览器下载",
							icon: 'none',
							duration: 2000,
						})
					}
				});
			}
		},
		onLoad(options) {},
		onUnload() {
			if (this.timer) {
				clearTimeout(this.timer);
				this.timer = null;
			}
		},
	}
</script>

<style>
	page {
		background-color: #fff;
	}

	.fl {
		float: left;
	}

	.fr {
		float: right;
	}

	.update_item {
		background-color: #6C7282;
		border-radius: 35rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
		color: #fff;
		border: 10rpx solid #fff;
		padding: 15rpx 80rpx;
		font-size: 34rpx;
	}
</style>